update local file