public void ParseServerInput(Message m) throws IOException, UnknownHostException {
        String input = m.ReadString();
        switch (input.toLowerCase()) {
            case "print":
                //print out a debug statement
                System.out.println(m.ReadString());
                break;
            case "sm-appendresponse": {
                SMAppendFileResponse(m);
                break;
            }
            case "sm-writeresponse":
                SMAppendFileResponse(m);
                break;
            case "sm-seekfileresponse":
                //name datalen data
                SeekFileResponse(m);
                break;
            case "sm-getnoderesponse": {
                //try {
                mTempFileNode = new FileNode(false);
                mTempFileNodeReady = true;
                break;
            }
            case "sm-getfilesunderpathresponse": {
                mTempFilesUnderNode = GetFilesUnderNodeResponse(m);
                mTempFilesUnderNodeReady = true;
                break;
            }
            case "sm-readfileresponse":
                SMReadFileResponse(m);
                break;
            case "sm-logicalfilecountresponse":
                SMLogicalFileCountResponse(m);
                break;
            default:
                System.out.println("Client received unknown command: " + input + " from server");
        }
    }