added the ability to send a command also