added diagnose command