finalize decode/encode for clang