improved LibraryLoader