put state in a safe place where we can get it later
Merge pull request #1 from aleksclark/master

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