add mime types and small fixes