moved debug code to info