forgot too add -c and -d flag to the while getopts loop