script to load key pair