code improvement (avoided copy of code) at LibraryLoader class