bug fix for link file --david