finish HSTORE and case and phase references