added "library" load function