legal cleanup