fixed library loading