add getopts to convenient to get arguments