make save/restore settings less repetitive
Merge pull request #2 from ldo/ldo

make save/restore settings less repetitive