add switch buffer feature