report reader errors
fix mime type compare case sensitivity + refactor