generalized the encoder reader to read 4 encoders.