fix connection to multiple people and trap some errors