added routing and location sending