mimetype logic, link name logic, remove debug GET