added replica_count param