added link parsing