add an optional <custom-fields> to <analysis>