externalize resources