use ScopeBuffer in std.file