add condition on isRemotePath