hmm backwards compatibility for py2.6