new method of loading libraries