implemented idle_streams feature