move autoloader to top of entry script