added loadLibrary call