getopts working again