move plugin to lib