refactor retrieve-shards!