fix sending the right command

was sending 'command' for everything.