minip cleanup