reading buffers from file