update header structure and test PiecewiseBoard extension