fixes on url replacer and upload part of student sorting problem