it's ugly, but it exectues
testing with IRL encoder values