router now uses location api