Use the enabled flag
Better mimetype handling