take out allowedMessages hash