split up messaging and session part