added ContentType middleware