rescope spec to avoid framework APIs