fixing class loading to work as a gem