fix cmdline flags