still need to resetVars() on load