first pass at folders index. lots of template deduping