Adding logging, etc. to see why mime types not working.