preliminary cleanup