post error hooks