fetch and replace references to remote assets