straighten out savedVars and make loading work