added key header and sig header