add key generate setting
mod