fix file internal linking. fixes #191