add the message middleware back in