finished the ul mime-type detection changes