added debugging code to find the problem with freaking edge merging
(pretty much ready to just douse the computer in kerosene and stab it with a road flare)