replace deprecated 'scoped' with 'scope'