move autoload to inside class