deal with relative paths