make library loading more stable #17