bugfix reading, writing works on one core