base cleanup