Flexible plugin handling