added some cutomizitions to the link generation