move Proj attributes into a proj_attr struct, so we can get rid of more special cases