misc fixes
Add base16 for terminal support