added -c and -f