added checks for permissions to remote path