refactor/soc header and data parser