migrated from getopt to getopts