added initializeNumShardsPerVersion