link and file fixes