ctx logging enhancements
result handler error handling enhancements
added optional 'domain' usage
TODO updated