update remote and local