fixed the http headers as key,value string pairs and added task type in stats