fixed output of sendcommand