add exception detector