simplifed factory method of thread