rebuild plugin structure