fix some bugs and add support for switching router providers