update the realm file