config static and index