detect domain for debugging