Support nested route configurations and re-implement on beacon

Support nested route configurations and re-implement on beacon