created new autoload functionality for better class extension handling