move ffi to sys namespace and raise core one level