corrected -c handling