use new method for faster library loading