added update_realm script