set scope in the thunk