moves debug info to proper place