adding support for extra modules to require