ffi-intern-hook simplification