less redundant error messages
fix  hex decoding