switch diagnostic output to stderr
diagnostic output for generate key