set debug flag from ENV