move pathOf to Main