accept and connected thread added