Revert "hex parser changes"

This reverts commit f28d8c4c2fad028c43c39649eb7101cd5496c4ff.