removed serve_json method