host name support added for resolving destination path