add convenient data extraction function for Output