option to re-upload files in case of error (fixes #9)