add downloading from command line logic