target: improve robustness of reset command