encode/decode debugged
encode/decode debugged