emit index when creating new entry