end server message handler separated