remove lapply for dopar again (overhead is acceptable), enabled resume for batchjobs