added check to create downloads folder if it doesn't already exist