VERY WIP, but fixes a stupid issue with ffi