fix hook loading by removing .class from the file name before loading the class