removing the cmd_exec function