added multi-line interactive support