modify sendcmd to request