added part of Groupie functionality, without handling messages and presences