turn off at end of file too