add option to default to hex to keep backward compatibility