add getopts in bootstrap