refine config, move file buffer to internal namespace