got parallelization to work - hacky though