reading local files using less-blocking structure, initial peer-fetching code