replace router lib with external module