more stuff for updating entities