fix library loading