checking connections - add print statements