more robustness in face of redundant commands