made it optional to move private key to local storage