modifications for large files