changed output to application/json