set folder and index