update for to manage local url.