final void getKey(Message message, SecurityManager secMan) {
        String fkey = message.message;
        String[] tmp = message.message.split(",");
        message.message = tmp[0] + "," + tmp[1] + "," + tmp[2];
        getToken(message);
        Token tok = (Token)message.token;
        List<String> groups = tok.getGroups();
        FileRecord fr = fileData.get(tmp[3]);
        fkey = tmp[3];
        //String[] toks = fkey.split("[,]");
        //fkey = toks[0];
        //if(!groups.contains(toks[1])) { // if the user is not part of the specified group
        if((fr != null) && !groups.contains(fr.groupName)) {
            //System.out.println("System fail code 1");
            message.message = "You are not part of group " + fr.groupName;
            message.success = false;
            return;
        }

        //FileRecord fr = fileData.get(fkey);
        //tmp[4] = group name
        
        if((fr == null) && (tmp.length == 5) && (!tmp[4].equals("")) && (groups.contains(tmp[4]))) { // this is a new file to upload...
            //System.out.println("fail code 2");
            fr = new FileRecord(tmp[3], tmp[4], secMan.getRandom(128));
            fileData.put(fkey, fr);
        }
        if(fr == null) {
            //System.out.println("fail code 3");
            message.setKey(null);
            message.message = "file does not exist";
            message.success = false;
            return;
        }
        message.setKey(fr.fileKey);
        message.message = "key...";
        message.success = true;
    }