added simple persistence