adding a reset method to host_array_writer