get_realm done (that was hard.)