modified to use hardlinks (attempt 2)