command parsing for the TCP server