fix options handling (compatibility with older tornado)