added file chunking