rip out unnecessary debug code