store item ids in variables

this is important to allow reflection to get ids