clean up
more file io