renamed send_cmd