chunked transfer method for files, but still using identity for now