hey i freed stuff and close files