tried to fix the race condition in j3d again, no luck
minor changes in execution and plotting