add deepcopy and update path