post error hook works