rework mime type detection and accept some more file types whoa