cleanup unused and broken debug features