update index, organize folder structure