fix new json response with message function