clean up plugin structure