include debug statements for post hook check