make the path is works in more flexable