change path usage to filepath