               # loop through all cards states to see if they have urls
               # that we need to setup
               for name, state of card.states
-
+                console.log state.url()
                 if state.url?()
                   obj =
                     name: name

              # state has been updated so all we need to do is update
              # the route
              if currentState isnt oldState
                oldState = currentState
                shouldBePath = Apollos.Router.path(currentState)
                hasRoute = shouldBePath.indexOf("/") > -1

                if state.middlewares
                  routeObj.middlewares = state.middlewares

                console.log routeObj
                # make the route
                Apollos.Router.route("/#{route}", routeObj)

