moved getNewID() from spawn to misc