do some cleanup