fix headers serialization
addressing pr comments
Merge pull request #138 from mdsol/fix_headers_serialization_support

fix headers serialization