switched to list for detecting open connection