adding --auto and --download command line options