added support for path substitution available on the server