added empty stream logic toggle and buffer status config