update to plugin structure