connect in other thread