checkprimate cleanup