static method for autoloader