update uri used to cp_uri