define a 1MB buffer by default.