use single interface for output debug messages
replace with cycle
catch another crazy case (endless road it is)
gc
fix comment