sketch for exporting in time-bins