forgot too add -c and -d flag to the while getopts loop
i mixed up -o and -O flags for wget