disabled old debug code