update body-parsing middleware