should have done -- but file is being deleted