limit buffer size to 8K