safe execution patched