moved conditional to exclude getopt