add copyFromFileToFile functionality