debugging triggered reconstruction code