changed previous change a bit. Now it behaves like debugger