some more work on realms