if elemt has an field "id", use it