added hook for end-of-run checking