added: more flexility to resources and realms with config hashes