added interactive support and SameSign config