Modified getConnectedCDN method, other bug fixes