trying to fix problem with multiprocessing and shared memory, didn't work now totally different approach