configure and clean