made bind_to_domain private