attr access clean up and debuging stuff