added hex conversion for ids