add gues mimetype logic