clearCache and reset methods