add item and feed ids where appropriate