builds index file for root directory