simplify body-parsing middleware