fix batch script and keypair