implement shardsetsource mode