added parameter nscatimeout to allow for connections with more latency