make plugins v6 and v7 compatible