[WIP] suport sharding

#2