fixing and relinking