some work on hex parser