added refreshCaches