added ui and change some sys.Arg handling