proposed fix for link parsing