attempt 2 to support old-style class in 2.6