add back debugging mode