moved flag.Parse() call from init() to main()