marked a couple static functions to use the faster FFI calls