refactor Node#handle_response