initial work on decoders and body encoders