improved extension loader to handle files in class path