take scope into account on reset