working on calling native lib functions from ffi