fixed something, added file output - don't whether there are still problems on singlecore