got it to finally save data to disk, but it's way too slow an inefficient. sadly, I might need to port it back to python.