add in a variable in connection to indicate whether the connection is
still alive