added flush_cache