added -c option