more correct copying of message results, and checking of ref/rep
relations