filthy hack for variable length commands