setup separate thread to monitor client connections