def METHOD_NAME(self, tries = 10):
    # need delay and check only because TRex process might be still starting
    sys.stdout.write('Connecting')
    err = ''
    for i in range(tries):
        try:
            sys.stdout.write('.')
            sys.stdout.flush()
            self.bird_trex.METHOD_NAME()
            self.bird_trex.acquire(force = True)
            self.bird_trex.stop()
            print('')
            return True
        except Exception as e:
            err = e
            time.sleep(0.5)
    print('')
    print('Error connecting: %s' % err)
    return False