modified config to accomodate replica sets