added bin/oct/hex support