trying to fix an issue with mongo store not working with replica sets