needs to check that the destination file exists also here