refactor
fixed debug module