add ffi expression patterns to simplify foreign imports