remove use_repl, and adding support for sharded cluster