added a check for the autoloader class to avoid class redefinition