add compile hooks, use plugins dir