add location function for bundle route