moved connection into loop, fmt