fixed router constructor