add index routine
recursively walk root dir