add key security generation in setup script