refer local resource first