switchbuf