load_lib improvement