added functionality to loadlibs