rework session threads