added ability to correctly send messages to a group