diff --git a/dc-download-videos.plx b/dc-download-videos.plx
index 19e23b2..b50e7cc 100755
--- a/dc-download-videos.plx
+++ b/dc-download-videos.plx
@@ -24,10 +24,39 @@ use warnings;
use WWW::Mechanize;
use HTTP::Cookies;
+use Encode qw(encode decode);
+
my $mech = WWW::Mechanize->new(autocheck => 1);
+foreach my $dir ("html", "videos", "log") {
+ unless (-d $dir) {
+ mkdir $dir or die "unable to create subdir for $dir: $!";
+ }
+}
+
+die "usage: $0 PASSWORD STAKES GAME_TYPE" unless @ARGV == 3;
+
my $passfile = $ARGV[0];
+#
+
+my $stakes = $ARGV[1];
+
+#
+#
+#
+#
+#
+#
+#
+#
+
+my $gameType = $ARGV[2];
+
open(PASSWORDS, "<", $passfile) or die "unable to read $passfile $!";
my($login, $password);