added basic mime support