Marshal depending on the requested accept type is now  very clean