add CDN libs, bug fixes