handle custom directory to load plugins