added groupchat checking