override a def based on tornado 4.0 new release