added support for encoders 1-4