change -d flag to point main data directory, not just course directory