passing mimetype to compiler