avoid creating folders that aren't needed