debug mode and wt integration