now creating directory structure if it doesnt exist