support case class for open parameter and close result