add getopts file