fix authenticated connection