added sys.argv validation