sending and receiving PREPARE message. improved console log