put state in a safe place where we can get it later