add encoding,channel option