add generic options per domain
fix typos relationships
templates: make sure hashes are always rendered in the same order