change the order of routines, so we inspect body when fatal error occur