automatic int id assignment
cleanups