beginnings of results_handler