fixed error with requiring router