add Threading and zone code