c
seperate writing and reading index folders support added