logic to transfer files to different machines in a round robin manner