add stats handling to domain-server

- closes #2453