layout only.
supporting dup header in encoding.
updating test tool.
adding test encoder.