fixed up helper so it now can support CDNs