adding group open/close arround each message