add appinst exception handling