debug mode now works on infinite data