switch debug back to env variable