implements safeexec command