added ability to create folder if it doesnt exist