add complied index and resources