some routing and autoloader fixes