revert: cleanup code for -x option