some improvements to ContactImpl (made a few days ago but not committed till now)