established proper middleware for json support