protected void putCommand(String cmd, String args) {
        if (args == null || args.isEmpty())
            cmd += "\r\n";
        else
            cmd += " " + args + "\r\n";
        send(cmd);
    }