-c option implemented