check for id in item, added logging