sharding: give scale for size param in chunksize

not ready for merge yet (more fixes in this branch)