simplify for new plugin api