resolve symlinks