add last entities api