using getopt correctly now