Self-consistent aspects of x-ray absorption calculations