temp commit; have working reduce-domain with tests
working solution