remove old cache files correctly
correctly process resp codes