implementing file transfer feature