add convenience mode for hex encoding
fix cloaking tests