rewriting and fixing download pages