Resource linking, refactoring