wrapping for plugins