buf flush