refactor _upsert_wf to _update_wf, since this method will never insert