override a def from tornado 4.0 new version