added an environment which uses the escapePath feature
fixed the escape path function