added custom named-tuple code to make back-compatible with 2.4