make old buffer lexically scoped