more robustness in face of redundant command