integrate cross-domain detection with codebase and integration tests