add flush, getLiveFiles