rewrote to relative links