fix column reording for attributes
trivial cleanups
comment out some debug prints

but should probably switch to using logger