added remote cache flushing