secret termination setup