changed the way modules are loaded