my implementation of a replicated shardmaster