re-arrange the order - we want to check the files exist before we proceed to connect to ftp etc