before plugin update