better cleaning at the end of the GMT script