new script to cache the obs into a .json