add exception var to viewmodel