added clear cache functionallity