make sure hexoutput is unsigned