updated to display correct name when using relative paths