add Thread Connection functionnality