adding option '-d' for download