add timeout for connection to remote