improve the feature related to debug