re-add batchtime default and set length in struct