require plugin path logic