added resuming from transfering part of a file