mp error handling