corrects folder structure