move plugin outside