retrieve getopts from retrieve.sh