use pflag package instead of flag