finished secret_key setup