first try on changing the Router to use output plugins