combined remote and local into one