added base 16 support