Add reflection for plugin init