Fixed connection to accept pathnames