added exception handler per issue #163