added hex parsing