fixed connection mistakes