udpate entities
batch update of references