argh, Windows did not support memorystreams, so had to add regular file as fallback