export plugin with resource?