made handlers not to rely on domain configuration

- handlers no more rely on the domain configuration
- separate presence by domain
- fixed some typos