making app debug use env