put 'header' and 'params' as separate fields