add Debug.h for many debug and refactoring