modify add_msg to use walk routine