handling empty lists + persistent connections