file transfer completeв two ways

both need tests!!!