added proper error messages to autoloader