added model persistence
added model persistence