change file extension, update relative links