fix bugs; add shard key support for contrib/weibo