added statusCode to the stats obj