message_engine rework