adds analytics and index