updated generator plugin