improved hex support