Load libraries

improvement to loading libraries at startup