Enhanced plugin API