add getMime
update routes and media index