connection singleton. fixed update bug