sanity checks and other cleanliness things.