added cache for json requests