backwards-compatible to pymongo 2.1.1