printing out debug info on main instead of using debugger