updated safeexec