return this.connect()
      .then((msg) => this.setEncoding('ascii'))
      .then((msg) => console.log('After setting encoding to ASCII: ', msg))
      .then((msg) => this.setFiletype('jes'))
      .then((msg) => console.log('After setting filetype to JES: ', msg))