recustion control afterEach pops the stack