fixing some of the rel link logic