added flow manager own thread