added -x option