merge cli + gui (len(sys.argv) > 2 for cli)