increase file buffer size, decouple error message