fixed encode, now decoding
alloc first 3 nodes for spec codes