serializer: ugly hack to get params to accept header mimetype