enh: make this module compatible with mongdb replica-set. fixes #2