improve support for symbolic links