convert it to plugin