added ability to send commands to server