rail4-style scoping