ffi to call things in ws