prepare for messages