attempt to parallelize some things