prj2 add exception management