update a path