cleanup & build