library loading fix