enable debug mode to be set via ENV variable