added model saving persistence checks