autoload method changed to public