master listenandserve errorcheck added