seperate read and write indexing folders functionality added