suport sharding

#2