buiding sharded env