add traces, encodings and code for encoding generation