add prepare_msg method call