make sure xml update happens only once