fix the heuristics for adding resource to _none
link all resources from manifest, not just first