update for robustness
added msg to dan