added content-type header to fix invalid json error