update apology middleware