makes it work but...

gets around deprecated getLibraryClass & getModuleClass but not sure is
correct solution