final void downloadFile(FileMessage message) {
        String filename = message.message;
        for(FileRecord r : fileData) {
            if(r.file.equals(filename)) {
                if(message.token.getGroups().contains(r.group)) {
                    message.success = true;
                    return;
                }
            }
        }
        message.message = "file not found.";
        message.success = false;
    }