should use flush log