rename application_id to ref_id