added env usage for debug determination