implement first part of message entering.