got ffi to work, but need to flex the code a bit