added cache reset mechanism