reenabled saving to file, look into stream-splitting