deprecate resource match API