modified to use hardlinks to files