made debug flag an environment var... forgot to add two templates