purple: make it compile against 3.0.X API