revert getopt changes