fix plugin structure