made change to inser_fio_data to make it easier to interface with rest