adapted changes from the persistence model
Merge remote-tracking branch 'origin/master'