use copyFile so that it works across different devices