added stuff for groupchats