allow multiple calls of on for index creation