greatly simplified the globals/modules subsystem