switched to proper module registration instead of globals