indexing regexs files & path changing