improve compatibility with recent BigCouch, fixes #29