genericized the hex printing capabilities.