#9 fixed createRouter