def connect():
        c = getattr(JBoxGCD.threadlocal, 'conn', None)
        if c is None:
            JBoxGCD.configure()
            creds = GoogleCredentials.get_application_default()
            JBoxGCD.threadlocal.conn = c = build("dns", "v1", credentials=creds)
        return c