updated body parser to use new format