move variables into plugin