move connect stuff into other thread