change to correct dir before downloading