moved initialization of the parallelization upwards to make it available for external dataset extractios