move autoloader into class