autoloader and router for codegenerator