replace deprecated bodyParse with urlencoded and json middleware