use resolve method from Path package