prepare workitem_refrences