added persist
Merge pull request #70 from WClement/master

added persist