switched to getopts