added debugger to main template