added cache flush