adding support for trace in encoder and decoder