added get_realm script