clear some caches where appropiate