removed use of realpath