fix getopts fixups to work with params