working on persisting settings