added genkey