factory accpt-loop in thread