change structure to plugins