minor edit to fix working with realms