plugin updated for v4.x