setup route for devices