added first attempt of file transfering in chunks