compatabiltiy layer to aid in reuse of cruby ffi code