removed ugly hack in DefaultDebugEnvironment