rework flow sens thread