class connection working right with debug info