added new_ident import
cleanup, utility functions
rest of crazycrash change