update open[4] array initially and after adding a connection