fix loading of stuff from lib