added enc/dec structs.