removed deprecated use of path.exists