add diagnose file