update path list generation function

master and slave use the differetn method to generate path list. To be
continued.