pacman with thread to connect