add param_c support. each <custom> in a new div.
add 'c' to legend.