robustify to 512B buffers