refactor autoload class