moved debugger within new()