Moved gensecret to where it belongs