modified to work for working directory path