encoder object renamed to cmd