improved library loader methods