better error log for loadlibs