revise resource extraction to use explicit class loaders
clean up some function naming

fix typo