finish the first version of plugin