pin controller cleanup