add new method for diagnose
add git ignore file