added live threshold support