added message relation
changed implementation of relationship
added Group relation