working on filesystem buffered stream