added operation count and fixed fetching remote files