moved debugger to new()