debugging encoders