got encoders working