move debug code to other spot