fixing links etc