this might be problematic for flickr, because we are doing require() on the module, then doing other stuff that rely on the global.