auto detect if this is meant to be a module and copy it as just another module